import i18n from '@src/locales';
import FormWorkHoursPreview from './FormWorkHoursPreview.vue';
import FormWorkHoursSetting from './FormWorkHoursSetting.vue';

import FormNumber from '@src/component/form/components/FormNumber/FormNumber.vue';

let FormExpectTimeField = {
  formType: 'expectTime',
  fieldName: 'expectTime',
  name: i18n.t('common.projectManage.detail.statistics.text6'),
  placeHolder: i18n.t('projectManage.setting.workLog.expectTimePlaceholder'),
  isSystem: 1,
  isSystemControl: true,
  forceDelete: true,
  previewIcon: 'icon-fdn-number',
  component: {
    setting: FormWorkHoursSetting,
    preview: FormWorkHoursPreview,
    build: FormNumber,
    extend: {
      projectTask_expectTime_setting: FormWorkHoursSetting,
    },
  },
};

let FormCostTimeField = {
  formType: 'costTime',
  fieldName: 'costTime',
  name: i18n.t('common.projectManage.detail.statistics.text5'),
  placeHolder: i18n.t('projectManage.setting.workLog.costTimePlaceholder'),
  isSystem: 1,
  isSystemControl: true,
  forceDelete: true,
  previewIcon: 'icon-fdn-number',
  component: {
    setting: FormWorkHoursSetting,
    preview: FormWorkHoursPreview,
    build: FormNumber,
    extend: {
      projectWorkLog_costTime_setting: FormWorkHoursSetting,
    },
  },
};

let FormRemainTimeField = {
  formType: 'remainTime',
  fieldName: 'remainTime',
  name: i18n.t('projectManage.setting.workLog.remainTime'),
  placeHolder: i18n.t('projectManage.setting.workLog.remainTimePlaceholder'),
  isSystem: 1,
  isSystemControl: true,
  forceDelete: true,
  previewIcon: 'icon-fdn-number',
  component: {
    setting: FormWorkHoursSetting,
    preview: FormWorkHoursPreview,
    build: FormNumber,
    extend: {
      projectWorkLog_remainTime_setting: FormWorkHoursSetting,
    },
  },
};
export default [FormExpectTimeField, FormCostTimeField, FormRemainTimeField];
